package com.cxs.observer.simple.impl;

import com.cxs.observer.simple.MainSubject;
import com.cxs.observer.simple.ObServer;

/**
 * @Author: cxs
 */
public class SFObServerImpl extends ObServer {

    public SFObServerImpl(MainSubject subject) {
        this.mainSubject = subject;
        this.mainSubject.addObserver(this);
    }

    @Override
    public Object doUpdate() {
        System.out.println("顺丰快递观察到价格发生变化");
        return null;
    }
}
